﻿@using ECG.WebUI.CustomHelpers
@model IEnumerable<ECG.Common.ViewBannerClientDto>
@{
    var bannerFilter = Model.Where(m => m.PageKey == "TRANG-CHU" & m.PositionKey == "BANNER-BOTTOM-SLIDE");
}
@if (bannerFilter.Any())
{
    <div class="layout-width">
        <div class="clearfix">
            @foreach (var item in bannerFilter.OrderBy(m => m.BannerImageOrder))
            {
                <div class="adv-ce-item">
                    <a href="@string.Format("{0}", string.IsNullOrEmpty(item.Url) ? "javascript:void(0);" : item.Url)" title="@item.Title">
                        <img src="@item.ImagePath.ImagePathThumb(item.Width, item.Height)" width="@item.Width" height="@item.Height" alt="@item.Description" />
                    </a>
                </div>
            }
        </div>
    </div>
}